package com.shengyin.ec.service.cluster;

import java.util.List;

import com.shengyin.ec.model.entity.ChainCompany;
import com.shengyin.ec.model.entity.Goods;

public interface ChainCompanyService {

	public List<ChainCompany> getChainCompanyList();

	public void createChainCompany(ChainCompany company);

	public void removeChainCompanyById(long id);

	public void modifyChainCompany(ChainCompany company);
	
	public List<ChainCompany> getChainCompany(int status);
	
	public boolean checkChainCompanyUser(String username, String pwd);

	public ChainCompany getChainCompanyById(long id);
	
	
	//lining 2012-9-15
	public List<Goods> getGoodsListByChainCompanyId(long id);
	
	public List<ChainCompany> getChainChainCompanyListByChainCompanyId(long id);
	
	public void createChainChainCompany(ChainCompany chainChainCompany);
	
	
	
	//add by wql 2012-3-20
	 public List<ChainCompany> getChainCompanyList(int offset,int pagesize);
   
	public List<ChainCompany> getChainCompany(int status,int offset,int pagesize);

	List<ChainCompany> getChainCompanyByName(String username);

	 public Long getTotal();
	 
	 public void deleteSelectedCluster(String[] ids);

	void deleteSelectedChainCompany(String[] ids);
	
	public List<ChainCompany> getChainCompanyListByCluster(long clusterCompanyid,int offset,int pageSize);
	
	public List<ChainCompany> getChainCompanyListByCluster(long clusterCompanyid);

	public List<ChainCompany> searchChainByName(String[] paramValues ,int offset,int pageSize);
	
	public List<ChainCompany> searchChainByName(String[] paramValues);
	
}
